package org.csu.myblogger.myblogger.service.service;

import org.csu.myblogger.myblogger.commom.CommonResponce;
import org.csu.myblogger.myblogger.entity.Article;
import org.csu.myblogger.myblogger.entity.Comment;
import org.csu.myblogger.myblogger.entity.WaitComment;
import org.csu.myblogger.myblogger.vo.CommentVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommentService {
//    Article article,String data
    CommonResponce PublishComment(String username, CommentVo commentVo);
    CommonResponce DeleteComment(String username,CommentVo commentVo);
    //审核
    CommonResponce<List<WaitComment>> AuditComment(String username);
    //审核完后更新
    CommonResponce UpdateCommemt(String username,List<Comment>comment);
}
